<!--
  ~ Copyright (c) Enalean, 2018. All Rights Reserved.
  ~
  ~ This file is a part of Tuleap.
  ~
  ~ Tuleap is free software; you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation; either version 2 of the License, or
  ~ (at your option) any later version.
  ~
  ~ Tuleap is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
  -->

<div ng-if="$ctrl.is_loading" class="pull-request-file-diff-loading"></div>

<div ng-if="$ctrl.is_binary_file" class="pull-request-file-diff-binary-file">
    <i class="fa fa-file-o"></i><br>{{:: 'Binary file' | translate }}
</div>

<file-unidiff ng-if="$ctrl.shouldShowUnifiedDiff()"
              diff="$ctrl.diff"
              file-path="{{ $ctrl.file_path }}"
              pull-request-id="{{ $ctrl.pull_request_id }}"
></file-unidiff>
<side-by-side-diff ng-if="$ctrl.shouldShowSideBySideDiff()"
                   diff="$ctrl.diff"
                   file-path="{{ $ctrl.file_path }}"
                   pull-request-id="{{ $ctrl.pull_request_id }}"
></side-by-side-diff>
